SUBROUTINE ULIST2
     * Display 2 bulleted lists, using different styles of bullets and colours of text

     * Include the RealWeb definitions
     INCLUDE #RW.INCLUDE.DEFS FROM /SYSFILES/REALWEB,BP

     * Start the HTML page.
     * Display the text 'School Rules' in the browser's title bar.
     CALL RW_START_HTML_PAGE("School Rules", "", "", "", "")

     EQU AM TO CHAR(254)
     EQU VM TO CHAR(253)

     CALL RW_PUT("Every pupil is expected to")
     CALL RW_NEWLINES(2)

     *Set up the style of the list
     UL_CLASS='style="color: green; font-style: italic"'

     *Set up the array of items to include in the list 
     VALUE_LIST="Be punctual":AM:"Wear the correct uniform":AM:"Hand in homework on time"

     *Create the list
     CALL RW_MAKE_ULIST(VALUE_LIST,UL_CLASS)
     CALL RW_NEWLINES(4)
     CALL RW_PUT("Pupils MUST NOT")
     CALL RW_NEWLINES(2)

     *Set up the style of the list
     UL_CLASS= 'type="circle"'
     UL_CLASS<-1>= 'style="color: red"'

     *Set up the array of items to include in the list
     VALUE_LIST="Run in the corridors":AM:"Eat sweets in class":AM:"Leave the school grounds at lunchtime"
     *Create the list
     CALL RWA_MAKE_ULIST(LIST,VALUE_LIST,UL_CLASS)
     *Display the list
     CALL RW_PUT(LIST)

     *Complete the page
     CALL RW_END_PAGE
RETURN

Go to top button